<template>
	<view class="information-box-wrap flex-col" @click="gotoRouter('/pages-client/hospital/articleInfo?id=' + data.id)">
		<view class="information-box-title">{{ data.title }}</view>
		<image class="information-box-img" mode="aspectFill" :src="data.pictureUrl" />
		<view class="information-box-time">{{ time }}</view>
	</view>
</template>

<script>
import { dateUtils } from '../../utils/util.js';
export default {
	props: {
		data: {
			type: Object,
			default: {}
		}
	},
	data() {
		return {};
	},
	computed: {
		time() {
			return dateUtils.format(this.data.createTime);
		}
	},
	created() {},
	methods: {}
};
</script>

<style lang="less">
.information-box-wrap {
	background-color: rgba(255, 255, 255, 1);
	margin-bottom: 24rpx;
	border-radius: 24rpx;
	box-sizing: border-box;
	padding: 24rpx;
	.information-box-title {
		font-size: 34rpx;
		font-family: PingFang-SC-Medium, PingFang-SC;
		font-weight: 500;
		color: #333333;
		margin-bottom: 20rpx;
	}
	.information-box-img {
		width: 642rpx;
		height: 354rpx;
		border-radius: 8rpx;
		margin-bottom: 16rpx;
	}
	.information-box-time {
		font-size: 24rpx;
		font-family: PingFang-SC-Medium, PingFang-SC;
		font-weight: 500;
		color: #999999;
	}
}
</style>
